package designpattern.command.keyboard;

import com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureDSA;
import designpattern.command.Invoker;
import designpattern.command.keyboard.key.BackspaceCommand;
import designpattern.command.keyboard.key.BlankCommand;
import designpattern.command.keyboard.key.CtrlCommand;
import designpattern.command.keyboard.key.ShiftCommand;

public class Client {
    public static void main(String[] args) {
        IKeyBoardCommand backspace = new BackspaceCommand();
        IKeyBoardCommand ctrl = new CtrlCommand();
        IKeyBoardCommand shift = new ShiftCommand();
        IKeyBoardCommand blank = new BlankCommand();

        KeyBoardService keyBoardService = new KeyBoardService();
        keyBoardService.addCommand(backspace);
        keyBoardService.addCommand(ctrl);
        keyBoardService.addCommand(shift);
        keyBoardService.addCommand(blank);
        keyBoardService.executeCommand();
    }
}
